<?php


namespace app\api\model;


use think\Model;

class CustomerServiceAccount extends Model
{

    //自动写入时间
    protected $autoWriteTimestamp = true;

    /**
     * 时间格式化
     * @var string
     */
    protected $dateFormat = 'Y-m-d H:i:s';
    /**
     * 映射账号中间表
     */
    public function CustomerServiceAccountMiddle()
    {
        return $this->hasOne('CustomerServiceAccountMiddle', 'customer_service_account_id', 'id')->bind(['customer_service_account_middle_id' => 'id']);
    }
}